export default {
    singular: true,
    plugins: [
        ['umi-plugin-react', {
            antd: true,
            dva: true
        }],
    ],
    theme: {
        "@primary-color": "#30b767",
    },
    routes: [{
        path: '/',
        component: '../layout',
        routes: [
            {
                path: '/',
                component: './HelloWorld'
            },
            {
                path: '/upload',
                component: './updown/Upload'
            },
            {
                path: '/demo',
                component: './Demo'
            },
            {
                path: 'css-modules-with-less',
                component: './css-modules-with-less'
            }, {
                path: 'css-modules-with-antd',
                component: './css-modules-with-antd'
            }, {
                path: '/helloworld',
                component: './HelloWorld'
            }, {
                path: 'puzzlecards',
                component: './Puzzlecards'
            }, {
                path: 'list',
                component: './list'
            }, {
                path: '/dashboard',
                routes: [
                    {path: './analysis', component: 'dashboard/Analysis'},
                    {path: './monitor', component: 'dashboard/Monitor'},
                    {path: './workplace', component: 'dashboard/Workplace'},
                ]
            }
        ]
    }],
    proxy: {
        '/test': {
            target: 'http://114.116.89.193:8999',
            changeOrigin: true,
        },
    },
};